import http from '../axios'

export default {
  // 用户登录
  login (username, password) {
    return http.post('/login', {
      email: username,
      password: password
    })
  },
  // 用户注册
  register (username, password) {
    return http.post('/manager', {
      email: username,
      password: password
    })
  }
}
